<!--
 * @Author: 卡卡 1071780426@qq.com
 * @Date: 2023-09-27 17:43:02
 * @LastEditors: 卡卡 1071780426@qq.com
 * @LastEditTime: 2023-11-20 15:09:50
 * @FilePath: \mould\src\components\BehaViorManage\feedbackListText\index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->

<template>
  <!-- 小弹框 width:500,height:0.3,top:15%  -->
  <!-- 中弹框 width:800,height:0.5,top:10% -->
  <!-- 大弹框 width:1060,height:0.76,top:5% -->

  <div class="Control-1 mechanism_dialogS closure" id="comcn small">
    <el-dialog
      width="800px"
      v-loading="loading"
      element-loading-text="拼命加载中"
      element-loading-background="rgba(0, 0, 0, 0.2)"
      element-loading-spinner="el-icon-loading"
      :title="title"
      
      :visible.sync="visible"
      @close="closeDialog"
      :append-to-body="true"
      top="10%"
    >
      <div
        class="dialogBody common commonClassDialog moduleDialog"
        :style="{ height: dialogHeight }"
        style="width: 100%"
      >
        <div class="baseTable">
          <publicForm
            ref="publicForm"
            lableWidth="95px"
            :formObj="formObj"
            :formData="formData"
          >
          </publicForm>
        </div>

        <div class="postionTable" id="postionTable">
          <el-table :data="positionData" style="width: 100%">
            <el-table-column label="序号" type="index" width="50">
              
            </el-table-column>

            <el-table-column prop="fCuringno" label="养护架编号" align="center">
              <template slot-scope="scope">
                <div class="inputminute">
                  <el-input
                 
                    :disabled="isEdit"
                    v-model="scope.row.fCuringno"
                  ></el-input>
                </div>
              </template>
            </el-table-column>
            <el-table-column label="养护架层数编号" align="center">
              <template slot-scope="scope">
                <div class="inputminute">
                  <el-input
                    v-for="item in scope.row.layerList"
                    :key="item.fCuringno"
                    :disabled="true"
                    v-model="item.fCuringno"
                  ></el-input>
                </div>
              </template>
            </el-table-column>

            <el-table-column align="right" label="操作">
              <template slot="header">
                <div class="customTable">
                  <el-button
                    type="primary"
                    :disabled="isEdit"
                    icon="el-icon-circle-plus-outline"
                    @click="addUnqualifiedInfo"
                  ></el-button>
                </div>
              </template>
              <template slot-scope="scope">
                <div class="customTable" style="padding-right: 3px">
                  <el-input
                   
                  :disabled="isEdit"
                    v-model="scope.row.fCuringnum"
                    placeholder="添加层数"
                  ></el-input>
                  <el-button
                  type="danger"
                    :disabled="isEdit"
                   
                    @click="addStoreyInfo(scope.$index, scope.row)"
                    
                  >确定</el-button>
                  <!-- circle  icon="el-icon-circle-plus-outline"-->
                  <el-button
                  type="danger"
                    :disabled="isEdit"
                    icon="el-icon-delete"
                    @click="deleteStoreyInfo(scope.$index, scope.row)"
                    circle
                  ></el-button>
                  <el-button
                    
                    type="primary"
                    :disabled="isEdit"
                    icon="el-icon-delete"
                    @click="deleteUnqualifiedInfo(scope.$index, scope.row)"
                   
                  ></el-button>
                  
                </div>
              </template>
            </el-table-column>
          </el-table>
        </div>
        <div style="height: 30px;"></div>
      </div>
      <div class="newlyAdded_btn" v-if="btnShow">
        <el-button :disabled="isLock" type="primary" @click="yj_saveForm(1)"
          >保存</el-button
        >
        <el-button type="warning" @click="visible = false">关闭</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script src="./index.js"></script>
<style lang="less" scoped>
@import "./index.less";
</style>
